package com.oak.broke.model.vip.dto;

import com.oak.broke.group.Query;
import com.oak.broke.group.Save;
import com.oak.broke.group.Update;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 
 *
 * @author guoxy
 * @email broke@gmail.com
 * @date 2023-05-18 10:37:20
 */
@Data
public class VipApplyDTO {

    /**
    * 分页大小
    */
    @NotNull(message = "分页大小不能为空", groups = {Query.class})
    private Integer pageSize;

    /**
    * 当前页
    */
    @NotNull(message = "当前页不能为空", groups = {Query.class})
    private Integer pageNo;


    /**
     * 用户姓名
     */
    @NotBlank(message = "用户姓名必填", groups = {Save.class})
    private String userName;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号必填", groups = {Save.class})
    private String phone;

    /**
     * 申请类型：ts_dm.kind'
     */
    @NotBlank(message = "申请类型不能为空", groups = {Save.class})
    private String applyType;

    /**
     * 关联code：vip_user_type=1，机构编号；vip_user_type=2，用户code
     */
    @NotBlank(message = "机构编号/用户code不能为空", groups = {Save.class})
    private String userRelationCode;

    /**
     * 用户类型：1-机构；2-个人
     */
    @NotBlank(message = "用户类型不能为空", groups = {Save.class})
    private String vipUserType;

    @NotBlank(message = "用户名称不能为空", groups = {Save.class})
    private String applyName;

    @NotBlank(message = "所属行政区划不能为空", groups = {Save.class})
    private String areaId;

    @NotBlank(message = "提交人code不能为空", groups = {Save.class})
    private String userCode;

    /**
     * 是否办结：1是；0否
     */
    private String isFinish;

    /**
     * 会员申请id
     */
    private List<String> applyIdList;

    /**
     * 会员申请id
     */
    private String vipApplyId;
    private List<String> areaIdList;

    /**
     * 会员申请详情id
     */
    @NotBlank(message = "会员申请详情id不能为空", groups = {Update.class})
    private String vipApplyUserId;

    /**
     * 办结说明
     */
    @NotBlank(message = "办结说明不能为空", groups = {Update.class})
    private String remark;
}
